﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Code.BLL;
using Code;
using Code.Models;
using System.IO;
using Code.Commen;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using Code.BLL.Arithmetic;
using System.Data;

namespace QianBuo.Lottery.Test
{
    public class Test1
    {
        public static void Main()
        {
            #region
            new Test2().Test();
            #endregion

            //A a = new B();
            //Console.Write(a.Fun1("A"));
            List<string> list = new List<string> {"被1a","a1阿"}.OrderBy(p => p).ToList();

            Console.Read();
        }

    }
    public abstract class A
    {
        public virtual string Fun1(string str)
        {
            return Fun3(str);
        }
        protected abstract string Fun2(string str);
        protected virtual string Fun3(string str)
        {
            return str + "A";
        }
    }
    public class B : A
    {
        protected override string Fun2(string str)
        {
            return str + "B";
        }
        protected override string Fun3(string str)
        {
            return str + "B";
        }
    }
}
